home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: swedecj@vcnet.com (Carl Jacobson)
- Newsgroups: comp.lang.c.moderated,comp.lang.c
- Subject: Please help me elect rounding of int division
- Date: 21 Feb 1996 08:34:55 -0600
- Organization: Internet Access of Ventura County 805.383.3500
- Sender: clc@solutions.solon.com
- Approved: clc@solutions.solon.com
- Message-ID: <4gfaif$1tt@solutions.solon.com>
- NNTP-Posting-Host: solutions.solon.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- Please help me solve this task.
-
- I have now tried (Borland C++ version 3.0) for two solid days to write
- a function that would allow me to round the quotient of (a/b) up or
- down based on the "nearest" integer instead of being truncated to the
- smallest. If exactly half way, return the "odd."
-
- Fatigue is now blinding me from any solution - can anyone help please.
- I have a feeling that this is an old "knot."
-
- ---------------------------------------------------------------
- Carl Jacobson
- P.O. Box 3607 swedecj@vcnet.com
- Thousand Oaks, CA 91359 phone: US 805.523.1724
-